﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Assignment_3.Feature___Housekeeping
{
    public partial class ScheduleDelete : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Session["username"] == null || Session["usertype"] == null)
            {
                Response.Redirect("~/Feature - Users/Login.aspx");
            }

            string id = Request.QueryString["housekeepingID"];
            lblSuccess.Text = "The Schedule, ID: " + id + ", is successfully deleted!";
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("RetrieveSchedule.aspx?");
        }
    }
}